package com.ershijin.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ershijin.model.entity.DictDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface DictDetailMapper extends BaseMapper<DictDetail> {
    @Override
    @Select("SELECT dd.* FROM dict_detail dd JOIN dict d ON dd.dict_id=d.id ${ew.customSqlSegment}")
    <E extends IPage<DictDetail>> E selectPage(E page, @Param(Constants.WRAPPER) Wrapper<DictDetail> queryWrapper);
}
